<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>

    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />

    <title>Xhodon: <%= controller.controller_name %> - <%= controller.action_name %></title>

    <%= javascript_include_tag :defaults %>
    <%= stylesheet_link_tag 'xhodon', :media => "all" %>

  </head>

  <body>

    <%= yield :layout %>

    <%= content_tag 'div', h(flash[:notice]), :class => 'notice', :id => 'notice' if flash [:notice] %>
    <%= content_tag 'div', h(flash[:error]), :class => 'notice error', :id => 'error' if flash [:error] %>

    <div class="navigation">
    <ul class="sub">
      <%= yield :navigation %>
    </ul>
      <ul class="top">
        <li class="1">
          <%= link_to 'Angriffe', attacks_path %>
          <ul>
            <li class="2">
              <%= link_to 'Kampfbericht', kampfbericht_path %>
            </li>
          </ul>
        </li>
        <li>
          <%= link_to 'Spieler', players_path %>
          <ul>
            <% @players.each do |player| %>
              <li>
                <%= link_to player.name, player %>
                <ul>
                  <li>
                    <%= link_to 'Paläste', player_palaces_path(player) %>
                  </li>
                  <li>
                    <%= link_to 'Helden', player_heros_path(player) %>
                  </li>
                </ul>
              </li>
            <% end %>
          </ul>
        </li>
        <li>
          <%= link_to 'Einheiten', units_path %>
        </li>
      </ul>
    </div>

  </body>

</html>
